#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include"SL.h"

void test1()
{
	SL s;
	SLInit(&s);
	/*SLCheckCapacity(&s);*/
	SLPushBack(&s, 3);
	SLPushBack(&s, 4);
	SLPushBack(&s, 5);
	SLPushFront(&s, 1);
	//SLPopBack(&s);
	//SLPopFront(&s);
	//SLPrint(&s);
	/*SLErase(&s, 2);
	SLErase(&s,0);
	SLErase(&s, 4);*/

	SLPrint(&s);
	SLInsert(&s, 2,9);
	SLPrint(&s);
	SLInsert(&s, 3, 8);
	SLPrint(&s);
	printf("%d\n", SLFind(&s, 8));
	printf("%d\n", SLFind(&s, 0));

	SLDestory(&s);
	SLPrint(&s);
}

int main()
{
	
 	test1(); 
 
	return 0;

}